import requests

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36'
}

# 测试中间件的正确性
def testMiddle():
    url = 'http://127.0.0.1:8000/login/'
    for i in range(100):
        response = requests.get(url, headers=headers)
        content = response.text
        print(content)


if __name__ == '__main__':
    testMiddle()
